package easy;

public class Solution_1822 {

    public int arraySign(int[] nums) {
        int count = 0;
        for (int num : nums) {
            if (num == 0) {
                return 0;
            } else if (num < 0) {
                count++;
            }
        }
        return count % 2 == 0 ? 1 : -1;
    }

    public static void main(String[] args) {
        Solution_1822 model = new Solution_1822();
//        System.out.println(Integer.parseInt("002010"));
    }
}
